import type {App} from 'vue'
import {useControlStore} from '../pinia/loginController'
export default {
    install(app:App){
        app.directive('cusBtn',{
            mounted(el,binding){
                const {userRight}= useControlStore()
                const right = [...userRight]
                if(!right.includes(binding.value)){
                    el.style.display = 'none';
                }
             
            }
        })
    }   
}